package com.ptu.dto;

import lombok.Data;

@Data
public class UserDTO {
    private Integer id;
    private String username;
    private String phone;
    private Integer gender;
    private String password;
    //头像
    private String img;

    public UserDTO() {
    }

    public UserDTO(String username, String phone, Integer gender, String password, String image) {
        this.username = username;
        this.phone = phone;
        this.gender = gender;
        this.password = password;
        this.img = img;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }




    @Override
    public String toString() {
        return "UserDTO{" +
                "username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", gender=" + gender +
                ", password='" + password + '\'' +
                ", img='" + img + '\'' +
                '}';
    }
}